home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-serious-
/
wb
/
merlin
/
rexx
/
eurotoguilder.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-07-12
|
772b
|
44 lines
/* RUN "rx MCP:rexx/EuroToGuilder.rexx %n" */
Arg node_number /* node we were run from */
Host = 'MCPREXX.'node_number /* the Trion MCP Arexx port */
Options results
Address value host
options failat 15
/* say "node: "node_number */
if node_number = "" then do
say "error .. rexx script not started with %n on command line"
exit 1
end
ReadString "ID 12"
Euros = result
if Euros < 0 then do
Euros = 0
WriteString "12" Euros
end
/* say "euros:" euros */
Guilders = Trunc( 0.5 + 100 * Euros * 2.20371 ) / 100
/* say "guilders:" guilders */
/* WriteString '11, Guilders' */
WriteString "11" Guilders
exit 0 /* einde programma */
test: /* een functie: 'call test' */
return 0